<extend name="Index:base" />
<block name="title"><title>四联广告</title></block>
<block name="style">
 <style>
.main,.panel-default>.panel-heading{
background:none;
}
body{
background:none;
}
.panel.panel-default,.panel .panel-body,.panel .panel-heading,.table-bordered {
	border:none;
}
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
	border:none;		
	padding:15px;	
	line-height:8px;
	height: 8px;
	border-top: 1px solid #d4d4d4;
	border-bottom: 1px solid #d4d4d4;
}
.name strong{
color:#000000;
font-size:15px;
font-weight:600;
}
.name {
	color:#20a8d8;
	font-size:12px;
}
.smallfont {
	color:#9c9c9c;
	font-size:12px;
}

.align-center{
	text-align:center; 
}
.title2{
text-align:center;
}
.table-bordered > tbody > tr .wd{
	text-align:left;	
}

.col-xs-2,.col-xs-4{
padding-right:0;
margin:10px 0;
}
.col-sm-3{
width:10%;
}
.col-sm-2{
width:8%;
}
.col-sm-1{
width:5%;
}
.col-sm-4{
width:18%;
}
.col-sm-1,.col-sm-2{
margin:16px 0;
}
.col-sm-3,.col-sm-4{
margin:10px 0;
}
.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4{
padding-right:0;
}
 </style>
</block>
	<!-- start: Header -->
<block name="body">

			<!-- end: Main Menu -->
						
		<!-- start: Content -->
		<div class="main ">
		
			<div class="row">
				<div class="col-lg-12">
					<h3 class="page-header"><i class="fa fa-life-bouy"></i>首页幻灯片</h3>
				</div>
			</div>

			<div class="row">
				<div class="col-md-12">
			        <div class="panel panel-default">
						<div class="panel-heading">
							
							<a class="btn btn-default " href="{:U('Index/home')}" >管理</i></a>&nbsp;&nbsp;&nbsp;
							<if condition="$type eq 'adv_add'">
							<h2><span class="break"></span><strong>新增焦点大图</strong></h2>
							</if>
							<if condition="$type eq 'adv_add_4'">
							<h2><span class="break"></span><strong>新增四张联动焦点组图</strong></h2>
							</if>							
						</div>&nbsp;&nbsp;&nbsp;
						<div class="panel-body" style="width: 50%;">
							<form action="{:U('Index/adv_add')}" method="post" enctype="multipart/form-data" class="form-horizontal ">
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input"><font style="color:red;">*</font>&nbsp;&nbsp;文字标题：</label>
				                    <div class="col-md-9">
				                        <input type="text" id="adv_title" name="adv_title" class="form-control" value="{$adlist.adv_title}">
				                        <span class="help-block"></span>
				                    </div>
				                </div>
								<in name="adv_type" value="11">
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input"><font style="color:red;">*</font>&nbsp;&nbsp;图片跳转链接：</label>
				                    <div class="col-md-9">
				                        <input type="text" id="adv_url" name="adv_url" class="form-control" value="{$adlist.adv_url}">
				                        <span class="help-block"></span>
				                    </div>
				                </div>
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">&nbsp;</label>
				                    <div class="col-md-3">
				                        <img class="img-thumbnail" src="{$adlist.adv_pic}" >
				                    </div>
				                </div>									
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">广告图片上传:</label>
				                    <div class="col-md-9">
				                        <input type="file" id="file-input" name="adv_pic" >
										<span class="help-block">为确保显示效果正确，请选择最小不低于W:776px H:300px、最大不超过W:1920px H:481px的清晰图片作为全屏焦点图。</span>
				                    </div>
				                </div>
								</in>
								<if condition="$adv_type eq 1">
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input"><font style="color:red;">*</font>&nbsp;&nbsp;图片跳转链接1：</label>
				                    <div class="col-md-9">
				                        <input type="text" id="adv_url" name="adv_url[]" class="form-control" value="{$adlist.adv_url.0}">
				                        <span class="help-block"></span>
				                    </div>
				                </div>	
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">&nbsp;</label>
				                    <div class="col-md-3">
				                        <img class="img-thumbnail" src="{$adlist.adv_pic.0}" >
				                    </div>
				                </div>								
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">广告图片1:</label>
				                    <div class="col-md-9">
				                        <input type="file" id="file-input" name="adv_pic1" >
										<span class="help-block">为确保显示效果正确，请选择W:259px H:180px的清晰图片作为联动广告图组单图。</span>
				                    </div>
				                </div>
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input"><font style="color:red;">*</font>&nbsp;&nbsp;图片跳转链接2：</label>
				                    <div class="col-md-9">
				                        <input type="text" id="adv_url" name="adv_url[]" class="form-control" value="{$adlist.adv_url.1}">
				                        <span class="help-block"></span>
				                    </div>
				                </div>	
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">&nbsp;</label>
				                    <div class="col-md-3">
				                        <img class="img-thumbnail" src="{$adlist.adv_pic.1}" >
				                    </div>
				                </div>								
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">广告图片2:</label>
				                    <div class="col-md-9">
				                        <input type="file" id="file-input" name="adv_pic2" >
										<span class="help-block">为确保显示效果正确，请选择W:259px H:180px的清晰图片作为联动广告图组单图。</span>
				                    </div>
				                </div>
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input"><font style="color:red;">*</font>&nbsp;&nbsp;图片跳转链接3：</label>
				                    <div class="col-md-9">
				                        <input type="text" id="adv_url" name="adv_url[]" class="form-control" value="{$adlist.adv_url.2}">
				                        <span class="help-block"></span>
				                    </div>
				                </div>	
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">&nbsp;</label>
				                    <div class="col-md-3">
				                        <img class="img-thumbnail" src="{$adlist.adv_pic.2}" >
				                    </div>
				                </div>								
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">广告图片3:</label>
				                    <div class="col-md-9">
				                        <input type="file" id="file-input" name="adv_pic3" >
										<span class="help-block">为确保显示效果正确，请选择W:259px H:180px的清晰图片作为联动广告图组单图。</span>
				                    </div>
				                </div>
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="text-input"><font style="color:red;">*</font>&nbsp;&nbsp;图片跳转链接4：</label>
				                    <div class="col-md-9">
				                        <input type="text" id="adv_url" name="adv_url[]" class="form-control" value="{$adlist.adv_url.3}">
				                        <span class="help-block"></span>
				                    </div>
				                </div>	
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">&nbsp;</label>
				                    <div class="col-md-3">
				                        <img class="img-thumbnail" src="{$adlist.adv_pic.3}" >
				                    </div>
				                </div>								
				                <div class="form-group">
				                    <label class="col-md-3 control-label" for="email-input">广告图片4:</label>
				                    <div class="col-md-9">
				                        <input type="file" id="file-input" name="adv_pic4" >
										<span class="help-block">为确保显示效果正确，请选择W:259px H:180px的清晰图片作为联动广告图组单图。</span>
				                    </div>
				                </div>								
								</if>
						
								<div class="form-group">
									<label class="col-md-3 control-label" for="select">排序:</label>
				                    <div class="col-md-9">
				                        <input type="text" id="slide_sort" name="slide_sort" class="form-control" value="{$adlist.slide_sort}">
				                        <span class="help-block">	数字范围为0~255，数字越小越靠前</span>
				                    </div>
								</div>
								<br>
				            
						</div>
						<div class="panel-footer" style="border:none">
							<input type="hidden" id="adv_type" name="type" value="{$type}"> 
							<input type="hidden" id="adv_id" name="adv_id" value="{$adlist.adv_id}">
							<input type="hidden" id="adv_type" name="adv_type" value="{$adv_type}">
		                    <button type="submit" class="btn btn-sm btn-success"><i class="fa fa-dot-circle-o"></i> 确定</button>
							&nbsp;&nbsp;&nbsp;
	                        <button type="reset" class="btn btn-sm btn-danger"><i class="fa fa-ban"></i> 重置</button>
		                </div>
					</form>						
			        </div>	
			    </div>			

			
			</div><!--/row-->				
			
		<!-- end: Content -->
		<br><br><br>
		
	</div><!--/container-->
	
</block>
<block name="script">
<script>

</script>
</block>	









